package com.livro.capitulo3.conexao;


import org.hibernate.SessionFactory;
import org.hibernate.classic.Session;


public class ConectaHibernateMysql {
	public static void main(String[] args) {
		Session sessao = null;
		 try{
			 SessionFactory sessionFactory = HibernateUtil.getSessionFactory();
			 sessao = sessionFactory.getCurrentSession();
		 } finally {
			 sessao.close();
		 }
		
	}
}

